<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:75:"/data/mnt/wwwroot/luckydraw/m/public/../application/view/lianpiao/index.php";i:1495787177;}*/ ?>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <title>我的联票</title>
    <link rel="stylesheet" href="<?php echo \think\Config::get('resources'); ?>/css/bootstrap.css">
    <link rel="stylesheet" href="<?php echo \think\Config::get('resources'); ?>/css/font-awesome.css">
    <link rel="stylesheet" href="<?php echo \think\Config::get('resources'); ?>/css/cl-style.css">
    <style type="text/css">
    .cl-ticket-no{
        width: 100%;
        height: 80%;
        background: #CECCCB;
        border-bottom: 3px #ffffff dotted;
        padding: 3px;
        border-radius: 4px 4px 0 0;
        color: #ffffff;
    }
    </style>
</head>
<body class="cl-body-bj">
 <div class="container-fluid">
     <div class="row">
         <header class="cl-Forgetpasswd-header">
             <ul>
                 <li class="col-xs-3"><a href="<?php echo url('Index/index'); ?>"><i class="fa fa-chevron-left"> 返回</i></a></li>
                 <li class="col-xs-6 text-center"><span class="text-center">联票中心</span></li>
                 <li class="col-xs-3"></li>
             </ul>
         </header>
     </div>
 </div>
 <div class="container-fluid">
     <!--  联票循环开始-->
     <?php if(is_array($pp) || $pp instanceof \think\Collection || $pp instanceof \think\Paginator): $i = 0; $__LIST__ = $pp;if( count($__LIST__)==0 ) : echo "暂无联票" ;else: foreach($__LIST__ as $key=>$d): $mod = ($i % 2 );++$i;?>
        <!--正常-->
        <?php if($d['shiyongdate'] >= date('Y-m-d',time())): ?>
            <div class="cl-ticket-box">
                 <header class="cl-ticket-h">
                     <div class="col-xs-3"> <img class="cl-ticket-img" src="<?php if(empty($d['goodsimage']) || (($d['goodsimage'] instanceof \think\Collection || $d['goodsimage'] instanceof \think\Paginator ) && $d['goodsimage']->isEmpty())): ?><?php echo \think\Config::get('resources'); ?>/upload/user.jpg<?php else: ?><?php echo $d['goodsimage']; endif; ?>" ></div>
                     <div class="col-xs-9" style="padding-right:0;">

                         <ul class="cl-ticket-hd">

                             <li class="col-xs-12"><h5><?php if(empty($d['goodsname']) || (($d['goodsname'] instanceof \think\Collection || $d['goodsname'] instanceof \think\Paginator ) && $d['goodsname']->isEmpty())): ?>超旅联票<?php else: ?><?php echo $d['goodsname']; endif; ?></h5></li>
                             <li class="col-xs-12"> <small>姓名：<?php echo $d['username']; ?></small></li>
                             <li>
                                 <ul>
                                     <li class="col-xs-4 quxiao" style="padding-left:0;"><a  class="btn btn-default"  role="button" href='<?php echo url("lianpiao_detail","id=".$d['id']); ?>' style=" padding: 3px 8px; border: 0;font-weight: normal; font-size: 1.3rem;">联票详情</a></li>
                                     <?php if($d['product_type'] == 1): ?>
                                     <li class="col-xs-4 quxiao" style="padding-left:0;"><a  class="btn btn-default"  role="button" href='<?php echo url("lianpiao_travel_list","lpn=".$d['lianpiaono']); ?>' style=" padding: 3px 8px; border: 0;font-weight: normal; font-size: 1.3rem;">固定景区</a></li>
                                     <?php endif; ?>
                                     <li class="col-xs-4 quxiao" style="padding-left:0;"><a  class="btn btn-default"  role="button" href='<?php echo url("lianpiao_luckydraw_list","lpn=".$d['lianpiaono']); ?>' style=" padding: 3px 8px; border: 0;font-weight: normal; font-size: 1.3rem;">抽奖景区</a></li>
                                 </ul>
                             </li>
                         </ul>
                     </div>
                 </header>
                 <footer class="cl-ticket-f">
                     <p class="cl-ticket-text">
                         <span class="pull-left">序列号：<?php echo $d['lianpiaono']; ?></span>
                         <span class="pull-right">激活期：<?php echo date('Y-m-d',strtotime($d['jihuoaddtime'])); ?></span>
                     </p>
                 </footer>
             </div>
        <?php else: ?>
            <!--已过期-->
            <div class="cl-ticket-box">
                 <header class="cl-ticket-h" style="background:#CECCCB;">
                     <div class="col-xs-3"> <img class="cl-ticket-img" src="<?php if(empty($d['goodsimage']) || (($d['goodsimage'] instanceof \think\Collection || $d['goodsimage'] instanceof \think\Paginator ) && $d['goodsimage']->isEmpty())): ?><?php echo \think\Config::get('resources'); ?>/upload/user.jpg<?php else: ?><?php echo $d['goodsimage']; endif; ?>" ></div>
                     <div class="col-xs-9">

                         <ul class="cl-ticket-hd">

                             <li class="col-xs-12"><h5><?php if(empty($d['goodsname']) || (($d['goodsname'] instanceof \think\Collection || $d['goodsname'] instanceof \think\Paginator ) && $d['goodsname']->isEmpty())): ?>超旅联票<?php else: ?><?php echo $d['goodsname']; endif; ?></h5></li>
                             <li class="col-xs-12"> <small>姓名：<?php echo $d['username']; ?></small></li>
                             <li>
                                 <ul>
                                     <li class="col-xs-6"><a  class="btn btn-default"  role="button" href='<?php echo url("lianpiao_detail","id=".$d['id']); ?>'>联票详情</a></li>
                                     <li class="col-xs-6"><a  class="btn btn-default"  role="button" href='javascript:;' onclick="alertInfo()">预约景区</a></li>
                                 </ul>
                             </li>
                         </ul>
                     </div>
                 </header>
                 <footer class="cl-ticket-f">
                     <p class="cl-ticket-text">
                         <span class="pull-left">序列号：<?php echo $d['lianpiaono']; ?></span>
                         <span class="pull-right">激活期：<?php echo date('Y-m-d',strtotime($d['jihuoaddtime'])); ?></span>
                     </p>
                 </footer>
             </div>
        <?php endif; endforeach; endif; else: echo "暂无联票" ;endif; ?>
     <!-- 联票循环结束-->
 </div>
 <!--网页底部开始-->
 <footer class="container-fluid cl-footer-ticket">

         <!--<button type="button" class="btn btn-warning btn-lg btn-block">绑定新联票</button>-->


 </footer>
 <!--网页底部footer结束-->
<!-- <script type="text/javascript" src="<?php echo \think\Config::get('resources'); ?>/js/jquery-1.11.3.min.js"></script> -->
<script type="text/javascript">
    function alertInfo(){
        alert("该联票已过期，请在联票详情中查看");
    }
    function alertYuding(){
        alert("该联票登记的手机号与您的手机号不一致，微信中仅可以对自己的联票进行操作！");
    }
</script>
<script charset="utf-8" type="text/javascript" src="<?php echo \think\Config::get('resources'); ?>/js/baidu_count.js"></script>
</body>
</html>